import { RMIProxyObject } from "../../Engine/RMI/RMIProxyObject";
import { IPetEquipPrx } from "./IPetEquipPrx";
import { AMI_IPetEquip_dress } from "./AMI_IPetEquip_dress";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { Outgoing } from "../../Engine/RMI/Outgoing";
import { AMI_IPetEquip_dressLifeStype } from "./AMI_IPetEquip_dressLifeStype";
import { AMI_IPetEquip_huntLifeStyle } from "./AMI_IPetEquip_huntLifeStyle";
import { AMI_IPetEquip_lifeStyleUpgrade } from "./AMI_IPetEquip_lifeStyleUpgrade";
import { AMI_IPetEquip_lockOrUnLockLifeStyle } from "./AMI_IPetEquip_lockOrUnLockLifeStyle";
import { DictStrIntHelper } from "../Public/DictStrIntHelper";
import { AMI_IPetEquip_repairPetAllWeaponCost } from "./AMI_IPetEquip_repairPetAllWeaponCost";
import { AMI_IPetEquip_repairPetWeapon } from "./AMI_IPetEquip_repairPetWeapon";
import { EPetEquipRepairType } from "./EPetEquipRepairType";
import { AMI_IPetEquip_swallowLifeStype } from "./AMI_IPetEquip_swallowLifeStype";
import { AMI_IPetEquip_unDressLifeStype } from "./AMI_IPetEquip_unDressLifeStype";
import { AMI_IPetEquip_undress } from "./AMI_IPetEquip_undress";
import { AMI_IPetEquip_undressAll } from "./AMI_IPetEquip_undressAll";
type int = number;
//class IPetEquipPrxHelper
    
    export  class IPetEquipPrxHelper extends RMIProxyObject implements IPetEquipPrx
    {
        constructor()
        {
            
            super();name = "IPetEquip";
            return;
        }

        public dress_async(arg1: AMI_IPetEquip_dress, arg2: string, arg3: string): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("dress");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            loc3.writeString(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public dressLifeStype_async(arg1: AMI_IPetEquip_dressLifeStype, arg2: string, arg3: string, arg4: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("dressLifeStype");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            loc3.writeString(arg3);
            loc3.writeInt(arg4);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public huntLifeStyle_async(arg1: AMI_IPetEquip_huntLifeStyle, arg2: int, arg3: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("huntLifeStyle");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            loc3.writeInt(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public lifeStyleUpgrade_async(arg1: AMI_IPetEquip_lifeStyleUpgrade, arg2: string, arg3: string): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("lifeStyleUpgrade");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            loc3.writeString(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public lockOrUnLockLifeStyle_async(arg1: AMI_IPetEquip_lockOrUnLockLifeStyle, arg2: int, arg3: Map<any, any> /* flash.utils.Dictionary */): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("lockOrUnLockLifeStyle");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            DictStrIntHelper.write(loc3, arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public repairPetAllWeaponCost_async(arg1: AMI_IPetEquip_repairPetAllWeaponCost, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("repairPetAllWeaponCost");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public repairPetWeapon_async(arg1: AMI_IPetEquip_repairPetWeapon, arg2: EPetEquipRepairType, arg3: int, arg4: string): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("repairPetWeapon");
            var loc3=new SerializeStream();
            arg2.__write(loc3);
            loc3.writeInt(arg3);
            loc3.writeString(arg4);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public swallowLifeStype_async(arg1: AMI_IPetEquip_swallowLifeStype, arg2: int, arg3: string, arg4: Map<any, any> /* flash.utils.Dictionary */): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("swallowLifeStype");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            loc3.writeString(arg3);
            DictStrIntHelper.write(loc3, arg4);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public unDressLifeStype_async(arg1: AMI_IPetEquip_unDressLifeStype, arg2: string, arg3: string): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("unDressLifeStype");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            loc3.writeString(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public undress_async(arg1: AMI_IPetEquip_undress, arg2: string, arg3: string): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("undress");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            loc3.writeString(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public undressAll_async(arg1: AMI_IPetEquip_undressAll, arg2: string): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("undressAll");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public static /* const */NAME: string="Message.Game.IPetEquip";
    }
